package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 越秀-产品表
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Data
@Accessors(chain = true)
@TableName("lease_prj_project_product")
@ApiModel(value = "LeasePrjProjectProduct对象", description = "越秀-产品表")
public class LeasePrjProjectProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "产品编号不能为空!")
    @ApiModelProperty("产品编号")
    private String code;

    @ApiModelProperty("地区类别")
    private String areaType;

    @ApiModelProperty("地区")
    private String area;

    @ApiModelProperty("基准发电小时数(h)")
    private String basicEleTime;

    @ApiModelProperty("光伏板衰减率")
    private String decayRate;

    @ApiModelProperty("保证金比例")
    private String depositRatio;

    @ApiModelProperty("电价(元/kwh)")
    private String elePrice;

    @ApiModelProperty("设备单价(元/瓦)")
    private String equipmentPrice;

    @ApiModelProperty("运维费用(元/瓦/年)")
    private String maintenancePrice;

    @ApiModelProperty("厂商收益分成比例")
    private String manufacturerInconeRatio;

    @ApiModelProperty("残值率")
    private String residualsRate;

    @ApiModelProperty("承租人收益(元/块光伏板/年)")
    private String tenantIncomePrice;

    @ApiModelProperty("组件型号")
    private String component;

    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    @TableLogic
    @ApiModelProperty("逻辑删除")
    private Integer deleted;
}
